<#--
***************************************************************************************
* 正元协同办公系统J2EE版
* 声明：金华正元计算机工程有限公司版权所有,
* 名称：default.ftl
* 功能：电子邮件列表页面显示
* 调用方法：
* 去向：
*
*修改日志：
*			修改者及修改内容简述。
*			姓名：盛行寅        时间：2010年11月15日 1  内容：生成本页面
****************************************************************************************
-->
<#include "/common/pager_style/commonlist.ftl" encoding="UTF-8">
<#assign buttonsName={"list":"刷新","reset":"重置","print":"导出excel"}>
<#assign isShowContinueAdd=false>
<script language="JavaScript">
<!--
	var actName="mailContentAction";
	var domainName="mailContent";
	var isSending=false;

	function checkForm(){
	}
	function opt_print(){
		 var oldAction = $("form").eq(0).attr("action");
			document.forms[0].action='deptDocRecordAction!countExcel.shtml';
			document.forms[0].submit();
			document.forms[0].action=oldAction;	
	}
	function opt_reset(){
		$("#countOrgNames").val("");
		$("#countOrgIds").val("");
		$("#beginDate").val("");
		$("#endDate").val("");
	}
	function search(){
			document.forms[0].submit();
	}
	function orderByParams(i){
	//alert($("#orderBy").val());
		if(i==$("#orderBy").val()){
			if($("#desc").val()==1){
				$("#desc").val("0");
			}else{
				$("#desc").val("1");
			}
		}else{
			$("#desc").val("0");
			$("#orderBy").val(i);
		}
		document.forms[0].submit();
	}
	//-->
</script>
<link rel="stylesheet" href="${request.contextPath}/skin/${skin}/css/homepage.css" type="text/css">
<body class="frameList">
<form name="form1" action="" method="post">
<input type="hidden" id="leaderIdUseForXml" name="leaderIdUseForXml" value="${(leaderIdUseForXml)?if_exists}">
	<div class="ui-com-top">
	<#-- 生成按钮及表格数据 -->
			<#include "/common/pager_style/pageButtons.ftl" encoding="UTF-8">
	</div><!-- end #ui-com-top -->
	<div class="ui-com-main">
		<div class="selectButton" height="98%">
		<fieldSet>
				<legend class="icon_warning">筛选条件</legend>
				<#if isSfb?exists&&isSfb="1">
				<tr >
					<th>
						<span>
							<label for="countOrgNames">选择单位</label>
							<a href="#" 
								onClick="openReferenceM('sysOrg','getOrg','countOrgIds=value1&countOrgNames=value2');;return false;" 
								title="点击打开参照窗口"> >>
							</a>
						</span>
					</th>
					<td>
						<input type="text" name="countOrgNames" id="countOrgNames" onClick="openReferenceM('sysOrg','getOrg','countOrgIds=value1&countOrgNames=value2')";; return false;class="" style=" width:140px;" value=""  >
					</td>
				</tr>		
					
					
				<#else>
				<tr >
					<th>
						<span><label for="countOrgNames">选择单位</label><a href="#" onClick="openReferenceM('sysOrg','orgTreeForSub','countOrgIds=value1&countOrgNames=value4&getSavedData=true&masterParams=0&inParams=${(leaderIdUseForXml)?if_exists}');;return false;" title="点击打开参照窗口"> >></a></span>
					</th>
					<td>
						<input type="text" name="countOrgNames" id="countOrgNames" onClick="openReferenceM('sysOrg','orgTreeForSub','countOrgIds=value1&countOrgNames=value4&getSavedData=true&masterParams=0&inParams=${(leaderIdUseForXml)?if_exists}')";; return false;class="" style=" width:140px;" value=""  >
					</td>
				</tr>				
				</#if>
					<input type="hidden" id="countOrgIds" name="countOrgIds" value="${(countOrgIds)?if_exists}">
					
					<th>
						<span><label for="beginDate">发文时间</label></span>
					</th>
						<td   >
							<input type="text" readonly name="beginDate" class="datePicker " id="beginDate"  onclick="WdatePicker({errDealMode:1,dateFmt:'yyyy-MM-dd HH:mm:ss'});" size="20" style="width:145px;" value="${(beginDate)?if_exists}"   >
						</td>
					
					<th>
						<span><label for="endDate">至</label></span>
					</th>
						<td   >
							<input type="text" readonly name="endDate" class="datePicker " id="endDate"  onclick="WdatePicker({errDealMode:1,dateFmt:'yyyy-MM-dd HH:mm:ss'});" size="20" style="width:145px;" value="${(endDate)?if_exists}"   >
						</td>
				
				<input type="hidden" id="orderBy" name="orderBy" value="${(orderBy)?if_exists}">
				<input type="hidden" id="desc" name="desc" value="${(desc)?if_exists}">
				<!--新的搜索列表end-->
				
				<input type="button" value="&nbsp;&nbsp;检&nbsp;&nbsp;索&nbsp;&nbsp;" onclick="search();return false;">
			</fieldSet>
			<br>
				<div class="pageTitle">统计</div>
			<br>
	
				<table  class="tbl_list tc tablesorter">
					<thead>
						<tr>
							<th width="30%" rowspan="2" style="vertical-align:middle"><a onclick="orderByParams(1)">单位<span class="headSort"></span></a></th>
								<th width="6%" colspan="5"><a">收文<span></span></a></th>
							<th width="6%" colspan="5"><a">发文<span></span></a></th>
						
						</tr>
						<tr>
							<th width="6%"><a onclick="orderByParams(6)">收件量<span class="headSort"></span></a></th>
							<!--
							<th width="0%"><a onclick="orderByParams(7)">正常办结<span class="headSort"></span></a></th>
							-->
							<th width="6%"><a onclick="orderByParams(8)">超期办结<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(9)">超期占比<span class="headSort"></span></a></th>
							<th width="10%"><a onclick="orderByParams(12)">平均时间(小时)<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(13)">满意度<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(2)">发件量<span class="headSort"></span></a></th>
							<!--<th width="0%"><a onclick="orderByParams(3)">正常办结<span class="headSort"></span></a></th>
							-->
							<th width="6%"><a onclick="orderByParams(4)">超期办结<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(5)">超期占比<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(10)">退回次数<span class="headSort"></span></a></th>
							<th width="6%"><a onclick="orderByParams(11)">退回率<span class="headSort"></span></a></th>
						</tr>
					</thead>
					<tbody>
					<#if countList?exists > 
					 <#list countList as count>
						<tr >
							<td text-align:center>${((count.sysOrg.name)?if_exists)?html}</td>
							<#if count.getSum?exists &&count.getSum != '0'>				
								<td text-align:center><font color="red">${((count.getSum)?if_exists)?html}</font></td>
							<#else>
								<td text-align:center>${((count.getSum)?if_exists)?html}</td>
							</#if>

							<#if count.getOut?exists &&count.getOut != '0'>	
							<td text-align:center><font color="red">${((count.getOut)?if_exists)?html}</td>
							<#else>
							<td text-align:center>${((count.getOut)?if_exists)?html}</td>
							</#if>
							
							<#if count.getOutPercent?exists &&count.getOutPercent != '0.00%'>	
							<td text-align:center><font color="red">${((count.getOutPercent)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.getOutPercent)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.avgTimeHour?exists &&count.avgTimeHour != '0.0'>
							<td text-align:center><font color="red">${((count.avgTimeHour)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.avgTimeHour)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.satisfactionPercent?exists &&count.satisfactionPercent != '0.00%'>
							<td text-align:center><font color="red">${((count.satisfactionPercent)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.satisfactionPercent)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.sendSum?exists &&count.sendSum != '0'>
							<td text-align:center><font color="red">${((count.sendSum)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.sendSum)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.sendOut?exists &&count.sendOut != '0'>
							<td text-align:center><font color="red">${((count.sendOut)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.sendOut)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.sendOutPercent?exists &&count.sendOutPercent != '0.00%'>
							<td text-align:center><font color="red">${((count.sendOutPercent)?if_exists)?html}</font></td>
							<#else>
							<td text-align:center><font color="">${((count.sendOutPercent)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.returnCount?exists &&count.returnCount != '0'>
							<td text-align:center><font color="red">${((count.returnCount)?if_exists)?html}</font></td>	
							<#else>
							<td text-align:center><font color="">${((count.returnCount)?if_exists)?html}</font></td>
							</#if>
							
							<#if count.returnPercent?exists &&count.returnPercent != '0.00%'>
							<td text-align:center><font color="red">${((count.returnPercent)?if_exists)?html}</font></td>	
							<#else>
							<td text-align:center><font color="">${((count.returnPercent)?if_exists)?html}</font></td>
							</#if>
							
						</tr>
						 </#list>
					</#if>	
					</tbody>
				</table>
			
		</div>
	</div>
</form>
</body>
</html>
